package br.com.escolaespacocrianca.fineec.business;

import org.hibernate.Session;

import br.com.caelum.vraptor.ioc.Component;
import br.com.escolaespacocrianca.fineec.model.Group;

@Component
public class GroupBusiness extends EntityBusiness<Group>  {
		
	public GroupBusiness(Session session) {
		super(session, new Group());
		this.session = session;
	}

	@Override
	protected void updateEntityInformations(Group group, Group groupToUpdate) {
		groupToUpdate.setDescription(group.getDescription());
		groupToUpdate.setAllowedUrl(group.getAllowedUrl());
	}

	@Override
	protected void beforeDelete(Group t) {
		// TODO Auto-generated method stub
		
	}
}
